using System;
using System.ComponentModel;
using System.Diagnostics;

namespace OFX.Aggregator.Infrastructure
{
	[Serializable]
	[DebuggerDisplay("Number = {Number}, Type = {Type}, Balance = {Balance}")]
	public class AccountInfo
	{
		[DefaultValue("")]
		public string BankId { get; set; }

		public string Number { get; set; }
		public AccountType Type { get; set; }

		[DefaultValue("")]
		public string Holder { get; set; }

		public double Balance { get; set; }

		[DefaultValue(0.0)]
		public double SpendingLimit { get; set; }
	}

	[Serializable]
	public enum AccountType
	{
		Checking,
		CreditLine,
		CreditCard,
		Savings,
		Other
	}
}